
using System;

using Mono.Unix;

namespace stefc.geo.platform
{

	internal class LinuxPlatform : IPlatform
	{
		private IGPSSensor gpsSensor; 
		
		public LinuxPlatform()
		{
			// Initialize GETTEXT
			Catalog.Init("stefc-geo-platform", "./locale");
		}
		
		public string GetHomeFolder()
		{
			return Environment.GetFolderPath(Environment.SpecialFolder.Personal);
		}
		
		public string GetString(string identifier)
		{
			return Catalog.GetString(identifier);
		}
		
		public IGPSSensor GetGPSSensor(int pollIntervall)
		{
			if(this.gpsSensor==null)
				this.gpsSensor=new GPSSensor(pollIntervall);
			return this.gpsSensor;
		}
	}
}
